package cn.com.lsjz.nursemanager.model.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.com.lsjz.nursemanager.model.BaseModel;

/**
 * 用户角色中间表
 * @author liucan
 *
 */
@Entity
@Table(name="SYS_USER_VS_ROLE")
public class SysUserVsRole extends BaseModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	
	@Column(name="ROLE_ID")
	private String roleId;
	
	@Column(name="USER_ID")
	private String userId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "UserVsRole [id=" + id + ", roleId=" + roleId + ", userId=" + userId + "]";
	}
	
}
